<div>
    <h2 data-translate="zhserverApp.doctor.home.title">Doctors</h2>
    <jhi-alert></jhi-alert>
    <div class="container-fluid">
        <div class="row">
            <div class="col-xs-4 no-padding-left">
                <button class="btn btn-primary" ui-sref="zhDoctor.new" >
                    <span class="glyphicon glyphicon-plus"></span>
                    <span  data-translate="zhserverApp.doctor.home.createLabel">
                        Create new Doctor
                    </span>
                </button>
            </div>
        </div>
    </div>
    <br/>
    <div class="table-responsive">
        <table class="jh-table table table-striped">
            <thead>
            <tr jh-sort="vm.predicate" ascending="vm.reverse" callback="vm.transition()">
                <th jh-sort-by="id"><span data-translate="global.field.id">ID</span> <span class="glyphicon glyphicon-sort"></span></th>
                <th jh-sort-by="workingyears"><span data-translate="zhserverApp.doctor.workingyears">Workingyears</span> <span class="glyphicon glyphicon-sort"></span></th>
                <th jh-sort-by="login"><span data-translate="zhserverApp.doctor.login">Login</span> <span class="glyphicon glyphicon-sort"></span></th>
                <th jh-sort-by="country"><span data-translate="zhserverApp.doctor.country">Country</span> <span class="glyphicon glyphicon-sort"></span></th>
                <th jh-sort-by="school"><span data-translate="zhserverApp.doctor.school">School</span> <span class="glyphicon glyphicon-sort"></span></th>
                <th jh-sort-by="resume"><span data-translate="zhserverApp.doctor.resume">Resume</span> <span class="glyphicon glyphicon-sort"></span></th>
                <th jh-sort-by="position"><span data-translate="zhserverApp.doctor.position">Position</span> <span class="glyphicon glyphicon-sort"></span></th>
                <th jh-sort-by="doctorname"><span data-translate="zhserverApp.doctor.doctorname">Doctorname</span> <span class="glyphicon glyphicon-sort"></span></th>
                <th jh-sort-by="headimage"><span data-translate="zhserverApp.doctor.headimage">Headimage</span> <span class="glyphicon glyphicon-sort"></span></th>
                <th jh-sort-by="flag"><span data-translate="zhserverApp.doctor.flag">Flag</span> <span class="glyphicon glyphicon-sort"></span></th>
                <th jh-sort-by="department.department"><span data-translate="zhserverApp.doctor.department">Department</span> <span class="glyphicon glyphicon-sort"></span></th>
                <th jh-sort-by="hospital.hospital"><span data-translate="zhserverApp.doctor.hospital">Hospital</span> <span class="glyphicon glyphicon-sort"></span></th>
                <th jh-sort-by="algorithm.algorithmName"><span data-translate="zhserverApp.doctor.algorithm">Algorithm</span> <span class="glyphicon glyphicon-sort"></span></th>
                <th></th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="doctor in vm.doctors track by doctor.id">
                <td><a ui-sref="zhDoctor-detail({id:doctor.id})">{{doctor.id}}</a></td>
                <td>{{doctor.workingyears}}</td>
                <td>{{doctor.login}}</td>
                <td>{{doctor.country}}</td>
                <td>{{doctor.school}}</td>
                <td>{{doctor.resume}}</td>
                <td>{{doctor.position}}</td>
                <td>{{doctor.doctorname}}</td>
                <td>{{doctor.headimage}}</td>
                <td>{{doctor.flag}}</td>
                <td>
                    <a ui-sref="zhDepartment-detail({id:doctor.department.id})">{{doctor.department.department}}</a>
                </td>
                <td>
                    <a ui-sref="zhHospital-detail({id:doctor.hospital.id})">{{doctor.hospital.hospital}}</a>
                </td>
                <td>
                    <a ui-sref="zhAlgorithm-detail({id:doctor.algorithm.id})">{{doctor.algorithm.algorithmName}}</a>
                </td>
                <td class="text-right">
                    <div class="btn-group flex-btn-group-container">
                        <button type="submit"
                                ui-sref="zhDoctor-detail({id:doctor.id})"
                                class="btn btn-info btn-sm">
                            <span class="glyphicon glyphicon-eye-open"></span>
                            <span class="hidden-xs hidden-sm" data-translate="entity.action.view"></span>
                        </button>
                        <button type="submit"
                                ui-sref="zhDoctor.edit({id:doctor.id})"
                                class="btn btn-primary btn-sm">
                            <span class="glyphicon glyphicon-pencil"></span>
                            <span class="hidden-xs hidden-sm" data-translate="entity.action.edit"></span>
                        </button>
                        <button type="submit"
                                ui-sref="zhDoctor.delete({id:doctor.id})"
                                class="btn btn-danger btn-sm">
                            <span class="glyphicon glyphicon-remove-circle"></span>
                            <span class="hidden-xs hidden-sm" data-translate="entity.action.delete"></span>
                        </button>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <div class="text-center">
        <jhi-item-count page="vm.page" total="vm.queryCount" items-per-page="vm.itemsPerPage"></jhi-item-count>
    </div>
    <uib-pager total-items="vm.totalItems" ng-model="vm.page" ng-change="vm.transition()"></uib-pager>
</div>
